package mainmenu;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Toolkit;
public class Utilities {
   public static Point getMidLocation(int width,int height){
	   Dimension screen=Toolkit.getDefaultToolkit().getScreenSize();
	   int x=(screen.width-width)/2;
	   int y=(screen.height-height)/2;
	   return new Point(x,y);
   }
}
